package exception;

public class AgeException extends Exception {//AgeException继承Exception
    @Override
    public String getMessage() {//重写异常
        return "年龄不能为负数！";
    }

}
